package com.kai.service.Impl;

import com.kai.dao.UserCourseMapper;
import com.kai.pojo.UserCourse;
import com.kai.service.UserCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserCourseServiceImpl implements UserCourseService {
    @Autowired
    private UserCourseMapper userCourseMapper;
    @Override
    public int userAddCourse(String user_id, String course_id) {
        return userCourseMapper.userAddCourse(user_id,course_id);
    }

    @Override
    public int selectUserAddCourse(String user_id, String course_id) {
        return userCourseMapper.selectUserAddCourse(user_id,course_id);
    }

    @Override
    public List<UserCourse> selectUserAddAllCourse(String user_id) {
        return userCourseMapper.selectUserAddAllCourse(user_id);
    }

    @Override
    public int deleteUserAddAllCourse(String id) {
        return userCourseMapper.deleteUserAddAllCourse(id);
    }
}
